/*! 2024-06-20_10:17:19 sem.am@ctrip.com */
!(function () {
    var i = {
        loadJs: function (i, t) {
            var o = document.createElement("script");
            (o.type = "text/javascript"),
                (o.async = !0),
                i.indexOf("?") > -1
                    ? (o.src = i + "&v=" + t)
                    : (o.src = i + "?v=" + t);
            var c = document.getElementsByTagName("script")[0];
            c.parentNode.insertBefore(o, c);
        },
        isHttps: function (i) {
            var t = i.protocol;
            return "https:" == t;
        },
        isBlackWord: function (i) {
            for (
                var t = [
                    "flights.ctrip.com/actualtime",
                    "contents.ctrip.com",
                    "secure",
                    "account",
                    "message",
                    "safecenter",
                    "smarket",
                    "safecenter",
                    "my.ctrip.com",
                ],
                o = 0;
                o < t.length;
                o++
            )
                if (i.href.toLowerCase().indexOf(t[o]) > -1) return !0;
            return !1;
        },
        isWhiteWord: function (i) {
            for (
                var t = [
                    /www\.ctrip\.com(?!\/\b)/i,
                    /hotels\.ctrip\.com(?!\/\b)/i,
                    /hotels\.ctrip\.com\/international(?!\/\b)/i,
                    /hotels\.ctrip\.com\/hotsale(?!\/\b)/i,
                    /tuan\.ctrip\.com(?!\/\b)/i,
                    /hotels\.ctrip\.com\/apartment(?!\/\b)/i,
                    /taocan\.ctrip\.com\/sh(?!\/\b)/i,
                    /inn\.ctrip\.com(?!\/\b)/i,
                    /vacations\.ctrip\.com(?!\/\b)/i,
                    /cruise\.ctrip\.com(?!\/\b)/i,
                    /taocan\.ctrip\.com(?!\/\b)/i,
                    /vacations\.ctrip\.com\/grouptravel(?!\/\b)/i,
                    /weekend\.ctrip\.com\/around(?!\/\b)/i,
                    /vacations\.ctrip\.com\/themetravel(?!\/\b)/i,
                    /vacations\.ctrip\.com\/(idiytour|visa|youxue|dingzhi|deals|tours|morelinetravel)(?!\/\b)/i,
                    /mice\.ctrip\.com(?!\/\b)/i,
                    /tuan\.ctrip\.com\/travel(?!\/\b)/i,
                    /flights\.ctrip\.com(?!\/\b)/i,
                    /flights\.ctrip\.com\/fuzzy(?!\/\b)/i,
                    /airbus\.ctrip\.com(?!\/\b)/i,
                    /flights\.ctrip\.com\/international(?!\/\b)/i,
                    /trains\.ctrip\.com(?!\/\b)/i,
                    /rails\.ctrip\.com(?!\/\b)/i,
                    /bus\.ctrip\.com(?!\/\b)/i,
                    /car\.ctrip\.com(?!\/\b)/i,
                    /car\.ctrip\.com\/line\/index(?!\/\b)/i,
                    /car\.ctrip\.com\/(idayweb|daijia|zijia|hwdaijia|hwzijia|sitemap)(?!\/\b)/i,
                    /piao\.ctrip\.com(?!\/\b)/i,
                    /piao\.ctrip\.com\/oversea(?!\/\b)/i,
                    /huodong\.ctrip\.com\/wifi(?!\/\b)/i,
                    /parking\.ctrip\.com(?!\/\b)/i,
                    /tuan\.ctrip\.com\/ticket(?!\/\b)/i,
                    /you\.ctrip\.com\/around(?!\/\b)/i,
                    /huodong\.ctrip\.com(?!\/\b)/i,
                    /you\.ctrip\.com(?!\/\b)/i,
                    /ct\.ctrip\.com(?!\/\b)/i,
                    /ct\.ctrip\.com\/crptravel\/default\/landing(?!\/\b)/i,
                    /cruise\.ctrip\.com\/skysea(?!\/\b)/i,
                    /mall\.ctrip\.com(?!\/\b)/i,
                    /pages\.ctrip\.com\/marketing\/\d+\/\d+\/svip\/index\.html(?!\/\b)/i,
                    /tuan\.ctrip\.com\/[a-zA-Z]+(?!\/\b)/i,
                    /trains\.ctrip\.com\/trainbooking\/searchtrain\.aspx(?!\/\b)/i,
                    /bus\.ctrip\.com\/ship(?!\/\b)/i,
                    /hotels\.ctrip\.com\/(hotel|pic|map|group|brand|public|top|around|faxian|hotsale)(?!\/\b)/i,
                    /hotels\.ctrip\.com\/(hotel|pic|map|group|brand|public|top|around|faxian|hotsale)\/(?!\/\b)/i,
                    /pages\.ctrip\.com\/public\/contact\.html/i,
                    /meeting\.ctrip\.com(?!\/\b)/i,
                    /meeting\.ctrip\.com\/online(?!\/\b)/i,
                    /meeting\.ctrip\.com\/online\/(?!\/\b)/i,
                    /hotels\.ctrip\.com\/international\/(?!\/\b)/i,
                    /inn\.ctrip\.com\/inn(?!\/\b)/i,
                    /inn\.ctrip\.com\/inn\/(?!\/\b)/i,
                    /inn\.ctrip\.com\/map\/(?!\/\b)/i,
                    /tuan\.ctrip\.com\/[a-zA-Z]+\/(?!\/\b)/i,
                    /piao\.ctrip\.com\/(dest|dianping|jianjie)(?!\/\b)/i,
                    /piao\.ctrip\.com\/(dest|dianping|jianjie|ticket)\/(?!\/\b)/i,
                    /cruise\.ctrip\.com\/(search|c|poi|company)(?!\/\b)/i,
                    /cruise\.ctrip\.com\/(search|c|poi|company)\/(?!\/\b)/i,
                    /vacations\.ctrip\.com\/(idiytour|visa|youxue|dingzhi|deals|tours|morelinetravel|around|grouptravel)\/(?!\/\b)/i,
                    /taocan\.ctrip\.com\/(freetravel|sh)(?!\/\b)/i,
                    /taocan\.ctrip\.com\/(freetravel|sh)\/(?!\/\b)/i,
                    /weekend\.ctrip\.com\/around\/(?!\/\b)/i,
                    /huodong\.ctrip\.com\/(activity|destination|dailytour)(?!\/\b)/i,
                    /huodong\.ctrip\.com\/(activity|destination|dailytour)\/(?!\/\b)/i,
                    /vacations\.ctrip\.com\/(international|subject|insurance|group|brand|themetravel|tourleader|tour)(?!\/\b)/i,
                    /vacations\.ctrip\.com\/(international|subject|insurance|group|brand|themetravel|tourleader|tour)\/(?!\/\b)/i,
                    /you\.ctrip\.com\/(tourleaders|tourleader)(?!\/\b)/i,
                    /you\.ctrip\.com\/(tourleaders|tourleader)\/(?!\/\b)/i,
                    /flights\.ctrip\.com\/(booking|schedule|actualtime|domestic|itinerary)(?!\/\b)/i,
                    /9cair\.flights\.ctrip\.com(?!\/\b)/i,
                    /flights\.ctrip\.com\/(booking|schedule|actualtime|domestic|itinerary)\/(?!\/\b)/i,
                    /9cair\.flights\.ctrip\.com\/(?!\/\b)/i,
                    /flights\.ctrip\.com\/international\/(?!\/\b)/i,
                    /trains\.ctrip\.com\/(trainbooking|trainschedule|piaojia|huochezhan|checi|daishoudian|yushouqi|sitemap|hot-schedule|hot-line)(?!\/\b)/i,
                    /trains\.ctrip\.com\/(trainbooking|trainschedule|piaojia|huochezhan|checi|daishoudian|yushouqi|sitemap|hot-schedule|hot-line)\/(?!\/\b)/i,
                    /bus\.ctrip\.com\/(booking|s|schedule|schedule-sitemap)(?!\/\b)/i,
                    /bus\.ctrip\.com\/(booking|s|schedule|schedule-sitemap)\/(?!\/\b)/i,
                    /bus\.ctrip\.com\/busListn\.html(?!\/\b)/i,
                    /car\.ctrip\.com\/(city|country|guide|vendor)(?!\/\b)/i,
                    /car\.ctrip\.com\/(city|country|guide|vendor)\/(?!\/\b)/i,
                    /car\.ctrip\.com\/(idayweb|daijia|zijia|hwdaijia|hwzijia|sitemap)\/(?!\/\b)/i,
                    /you\.ctrip\.com\/(area|place|sitelist|months|map|photos|summary|traffic|visa|hotels|sight|sightlist|restaurant|fooditem|restaurantlist|countryrestaurantlist)(?!\/\b)/i,
                    /you\.ctrip\.com\/(countryfoodlist|food|shopping|goods|shoppinglist|districtshop|resort|countryactivitylist|resortlist|journeys|dangdiren|situs|countrysightlist)(?!\/\b)/i,
                    /you\.ctrip\.com\/(guides|travels|asks|events|groups|group|dianping|weather|news|it|lvyou|shangwu|badge|sitemap|official|officialresults|travellers|activities|flight)(?!\/\b)/i,
                    /top\.ctrip\.com(?!\/\b)/i,
                    /you\.ctrip\.com\/(area|place|sitelist|months|map|photos|summary|traffic|visa|hotels|sight|sightlist|restaurant|fooditem|restaurantlist|countryrestaurantlist)\/(?!\/\b)/i,
                    /you\.ctrip\.com\/(countryfoodlist|food|shopping|goods|shoppinglist|districtshop|resort|countryactivitylist|resortlist|journeys|dangdiren|situs|countrysightlist)\/(?!\/\b)/i,
                    /you\.ctrip\.com\/(guides|travels|asks|events|groups|group|dianping|weather|news|it|lvyou|shangwu|badge|sitemap|official|officialresults|travellers|activities|flight)\/(?!\/\b)/i,
                    /top\.ctrip\.com\/(?!\/\b)/i,
                    /rails\.ctrip\.com\/(ptp|pass|passdetails|ask|international)(?!\/\b)/i,
                    /rails\.ctrip\.com\/(ptp|pass|passdetails|ask|international)\/(?!\/\b)/i,
                ],
                o = 0;
                o < t.length;
                o++
            ) {
                var c = t[o];
                if (c && c.test && c.test(i.href.toLowerCase())) return !0;
            }
            return !1;
        },
    },
        t = {
            _config: { version: "2024620101719" },
            // loadNts: function (t) {
            //     var o = window.location.protocol,
            //         c =
            //             o +
            //             "//webresource.c-ctrip.com/ResUnionOnline/R1/remarketing/js/__nts.js";
            //     i.loadJs(c, t);
            // },
            // loadThirdPart: function (t) {
            //     var o =
            //         window.location.protocol +
            //         "//webresource.c-ctrip.com/ResUnionOnline/R1/remarketing/js/thirdPart.js";
            //     i.loadJs(o, t);
            // },
            // loadSetUnionRecord: function (t) {
            //     var o =
            //         window.location.protocol +
            //         "//webresource.c-ctrip.com/ResUnionOnline/R1/remarketing/js/mkt_setUnionRecord.js";
            //     i.loadJs(o, t);
            // },
            init: function () {
                var t = this,
                    o = window.location;
                // t.loadNts(t._config.version),
                //     i.isBlackWord(o) ||
                //     (i.isWhiteWord(o) && t.loadThirdPart(t._config.version));
            },
        };
    t.init();
})();
